package com.cn.testanother;

import org.junit.Test;

import java.util.*;

/**
 * @author: zhangyi
 * @date: 2019/1/8 17:12
 * @description:
 */
public class GuavaDemo {
    @Test
    public void guava(){
        Map<Object, Object> map = Collections.unmodifiableMap(new HashMap<>());
        Collection<Object> values = map.values();
        values.add(1);
        values.add(2);
        values.add(3);
        Iterator<Object> iterator = values.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
